<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0">
    <title>键盘焦点</title>
</head>
<body>
    <input type="text" class="text"value="搜索" index="1">
    <style>
        body{
            background-image: url(/背景2.jpg);
            background-size: 100%;
        }
       input:focus{
        background-color: blue;
        margin-right: 100px;
        margin-left: 600px;
        font-size: 300%;
        width:600px;
        height:100px;
        border: 2px solid #dd3910;
        border-radius: 100px;
        outline: 10px;
       }
       .text{background-color: rgb(255, 255, 255);
        margin-right: 100px;
        margin-left: 600px;
        font-size: 300%;
        width:600px;
        height:100px;
        border: 2px solid #0f0f0f;
        border-radius: 100px;
        outline: 10px;

       }
    </style>
</body>
</html>